/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package it.trick.admin;

import javafx.collections.FXCollections;
import javafx.collections.ObservableList;

/**
 *
 * @author takahara
 */
public class Constants {

    // -------------------------------------------------------------------------
    // OS
    // -------------------------------------------------------------------------
    /**
     * OS固有のファイルの区切り文字
     */
    public static final String OS_FILE_SEPARATOR = System.getProperty("file.separator");
    /**
     * OS固有のuserのホームディレクトリ
     */
    public static final String OS_USER_HOME_DIR_PATH = System.getProperty("user.home");
    /**
     * OS固有の改行コード
     */
    public static final String OS_KAIGYOU_CODE = System.getProperty("line.separator");
    /**
     * OS固有のuserのホームディレクトリ
     */
    public static final String USER_HOME_DIR_PATH = System.getProperty("user.home");
    // -------------------------------------------------------------------------
    // APP
    // -------------------------------------------------------------------------
    /**
     * windowサイズ
     */
    public static final double MINIMUM_WINDOW_WIDTH = 1200.0;
    public static final double MINIMUM_WINDOW_HEIGHT = 700.0;
    // -------------------------------------------------------------------------
    // URL
    // -------------------------------------------------------------------------

    public static final ObservableList<String> SITES =
            FXCollections.observableArrayList(
            "http://it-trick.appspot.com/",
            "http://it-trick-javafx.appspot.com/",
            "http://it-trick-java.appspot.com/",
            "http://it-trick-scala.appspot.com/",
            "http://it-trick-php.appspot.com/");
    
    // -------------------------------------------------------------------------
    // DB
    // -------------------------------------------------------------------------
    /**
     * アプリルートディレクトリ名
     */
    public static final String DIR_NAME_APPL_ROOT = ".driveTrick";
    public static final String DB_PATH = USER_HOME_DIR_PATH
            + OS_FILE_SEPARATOR
            + DIR_NAME_APPL_ROOT
            + OS_FILE_SEPARATOR
            + "db";
    public static final String DB_USER = "drivetrick";
    public static final String DB_PASSWORD = "drivetrick";


    /**
     * チャンネル取得パス
     */
    public static final String GET_CHANNEL_LIST_PATH = "client/getChannelList";
    /**
     * チャンネル追加パス
     */
    public static final String ADD_CHANNEL_PATH = "client/insertChannel";
    /**
     * チャンネル削除パス
     */
    public static final String DELETE_CHANNEL_PATH = "client/deleteChannel";
    /**
     * チャンネル更新パス
     */
    public static final String UPDATE_CHANNEL_PATH = "client/updateChannel";
    /**
     * チャンネル取得パス
     */
    public static final String GET_CHANNEL_PATH = "client/getChannel?channel=";


    /**
     * カテゴリリスト取得パス
     */
    public static final String GET_CATEGORY_LIST_PATH = "client/getCategoryList?channel=";
    /**
     * カテゴリ追加パス
     */
    public static final String ADD_CATEGORY_PATH = "client/insertCategory";
    /**
     * カテゴリ削除パス
     */
    public static final String DELETE_CATEGORY_PATH = "client/deleteCategory";
    /**
     * カテゴリ更新パス
     */
    public static final String UPDATE_CATEGORY_PATH = "client/updateCategory";


    /**
     * キャプタリスト取得パス
     */
    public static final String GET_CHAPTER_LIST_PATH = "client/getChapterList?category=";
    /**
     * キャプター追加パス
     */
    public static final String ADD_CHAPTER_PATH = "client/insertChapter";
    /**
     * キャプター削除パス
     */
    public static final String DELETE_CHAPTER_PATH = "client/deleteChapter";
    /**
     * キャプター更新パス
     */
    public static final String UPDATE_CHAPTER_PATH = "client/updateChapter";
    /**
     * キャプタ取得パス
     */
    public static final String GET_CHAPTER_PATH = "client/getChapter?chapter=";
    /**
     * キャプタ公開・非公開パス
     */
    public static final String PUBLIC_CHAPTER_PATH = "client/publicChapter";
    /**
     * キャプタ名変更パス
     */
    public static final String CHANGE_CHAPTER_NAME_PATH = "client/changeChapterName";
    /**
     * キャプタインデックス変更パス
     */
    public static final String CHANGE_CHAPTER_INDEX_PATH = "client/changeChapterIndex";
    /**
     * キャプタ名変更パス
     */
    public static final String CHANGE_CHAPTER_DRIVE_IMAGE_FOLDER_ID_PATH = "client/changePageImageFolderId";


    /**
     * ページ取得パス
     */
    public static final String GET_PAGE_LIST_PATH = "client/getPageList?chapter=";
    /**
     * ページ追加パス
     */
    public static final String ADD_PAGE_PATH = "client/insertPage";
    /**
     * ページ削除パス
     */
    public static final String DELETE_PAGE_PATH = "client/deletePage";
    /**
     * ページ更新パス
     */
    public static final String UPDATE_PAGE_PATH = "client/updatePage";
    /**
     * ページ取得パス
     */
    public static final String GET_PAGE_PATH = "client/getPage?page=";
    /**
     * ページ公開・非公開パス
     */
    public static final String PUBLIC_PAGE_PATH = "client/publicPage";
    /**
     * ページ名変更パス
     */
    public static final String CHANGE_PAGE_NAME_PATH = "client/changePageName";
    /**
     * ページインデックス変更パス
     */
    public static final String CHANGE_PAGE_INDEX_PATH = "client/changePageIndex";
    /**
     * キャプタ名変更パス
     */
    public static final String CHANGE_PAGE_DRIVE_IMAGE_FOLDER_ID_PATH = "client/changePageImageFolderId";


    /**
     * PREリスト取得パス
     */
    public static final String GET_PRE_LIST_PATH = "client/getPreList?page=";
    /**
     * PRE追加パス
     */
    public static final String ADD_PRE_PATH = "client/insertPre";
    /**
     * PRE削除パス
     */
    public static final String DELETE_PRE_PATH = "client/deletePre";
    /**
     * PRE更新パス
     */
    public static final String UPDATE_PRE_PATH = "client/updatePre";
    /**
     * PRE取得パス
     */
    public static final String GET_PRE_PATH = "client/getPre?pre=";
    /**
     * ページ公開・非公開パス
     */
    public static final String PUBLIC_PRE_PATH = "client/publicPre";


}
